]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Add 'multi-line-notification' class name if the notification image is set
authorMarina Zhurakhinskaya <marinaz@redhat.com>
Mon, 29 Aug 2011 19:18:52 +0000 (15:18 -0400)
committerMarina Zhurakhinskaya <marinaz@redhat.com>
Mon, 29 Aug 2011 19:21:22 +0000 (15:21 -0400)
Notifications with images are multi line notification.

js/ui/messageTray.js

index 89d3aca4f357129e2570746a6e36a7dd4a481bee..79f91ade1a959a8b3e6a6c948cf19fdf5512f2c5 100644 (file)
@@ -677,6 +677,7 @@ Notification.prototype = {
         this._imageBin = new St.Bin();
         this._imageBin.child = image;
         this._imageBin.opacity = 230;
+        this._table.add_style_class_name('multi-line-notification');
         this._table.add_style_class_name('notification-with-image');
         this._updateLastColumnSettings();
         this._table.add(this._imageBin, { row: 1,
@@ -694,6 +695,8 @@ Notification.prototype = {
             this._table.remove_actor(this._imageBin);
             this._imageBin = null;
             this._updateLastColumnSettings();
+            if (!this._scrollArea && !this._actionArea)
+                this._table.remove_style_class_name('multi-line-notification');
         }
     },